let enterTime = "";
let outTime = "";
let stayTime = "";
export default {
  data() {
    return {};
  },
  onShow() {
    enterTime = new Date();
  },
  onHide() {
    outTime = new Date();
    stayTime = outTime.getTime() - enterTime.getTime();
	this.pageViewTrack(Number(stayTime) / 1000);
  },
  beforeDestroy() {
    outTime = new Date();
    stayTime = outTime.getTime() - enterTime.getTime();
	this.pageViewTrack(Number(stayTime) / 1000);
  },
};
